﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.WindowsAzure;
using System.IO;

namespace bdtheque.azure.business.azurestorage
{
    public static class ImageUploader
    {
        public static string UploadImage(Stream fileStream, string fileName, string contentType, CloudStorageAccount cloudStorageAccount)
        {
            return new CloudBlobHelper(cloudStorageAccount).UploadBlobFromStream("bdthequegallery", fileStream, fileName, contentType, true);
        }
    }
}
